cssstyle: fix a compiler warning
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 4 Jan 2016 01:20:06 +0000 (17:20 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 4 Jan 2016 01:20:06 +0000 (17:20 -0800)
gtk/gtkcssstyle.c

index 794a20ae5ed4397e9eb78664061142d6859e6f86..d801c646a269606bd4f28e2d3ddf18beb5c57e7b 100644 (file)
@@ -137,8 +137,8 @@ gtk_css_style_print (GtkCssStyle *style,
   guint i;
   gboolean retval = FALSE;
 
-  g_return_if_fail (GTK_IS_CSS_STYLE (style));
-  g_return_if_fail (string != NULL);
+  g_return_val_if_fail (GTK_IS_CSS_STYLE (style), FALSE);
+  g_return_val_if_fail (string != NULL, FALSE);
 
   for (i = 0; i < _gtk_css_style_property_get_n_properties (); i++)
     {